home *** CD-ROM | disk | FTP | other *** search
/ How Would You Survive? / How Would You Survive (1995)(Grolier)[Mac-PC].iso / pc / vindex.dir / 00039_Script_aIndexManager < prev    next >
Text File  |  1995-09-06  |  5KB  |  139 lines

  1. --òò╩aIndexManager
  2. property pTopicMenu , pLatchedAlpha
  3. on birth me 
  4.   return me
  5. end
  6.  
  7. on testIndexRollover me
  8.   --set the trace = true
  9.   set thisAlpha =  the mouseCast
  10.   if (thisAlpha > 0 and thisAlpha < 27) then 
  11.     set thisAlphaIndex = getAt(pTopicMenu,thisAlpha)
  12.     setTopicMenu(thisAlphaIndex)
  13.     clearRefLinkIcon(thisAlphaIndex)
  14.   else
  15.     if (objectP(pLatchedAlpha) ) then
  16.       --òò because the art department could not generate the
  17.       --òò the highlight art fro the topic menu we need to
  18.       --disable the highlight fucnctionality (commented out below)
  19.       --if (rollover(2)) then
  20.       -- secondaryHilight (sub-menu)
  21.       -- set vOffset = the mouseV
  22.       --  setTopicHiLight(pLatchedAlpha , vOffset)
  23.       -- else
  24.       -- revert to latched topic menu
  25.       setTopicMenu(pLatchedAlpha) 
  26.       -- end if 
  27.     end if
  28.   end if
  29. end
  30.  
  31. on clickAlpha me
  32.   set thisAlpha = the mouseCast
  33.   if  (thisAlpha >= 1 and thisAlpha <= 26) then
  34.     set pLatchedAlpha = getAt(pTopicMenu,thisAlpha)
  35.     clearRefLinkIcon(pLatchedAlpha)
  36.   end if
  37. end
  38.  
  39. on clickTopic me 
  40.   set vOffset = the mouseV
  41.   selectTopicFromMenu(pLatchedAlpha,vOffset)
  42. end
  43.  
  44. on clickRefLink me , horzPos,vertPos
  45.   set vOffset = vertPos --the mouseV
  46.   clickRefLink(pLatchedAlpha,vOffset ,horzPos,vertPos)
  47. end
  48.  
  49. on resetIndex me
  50.   reset(pLatchedAlpha )
  51. end
  52.  
  53. on initIndex me
  54.   set pTopicMenu = []
  55.   set indexCount = 1
  56.   --òò A Topic Menu  
  57.   set topicObjClass = the number of cast "aTopicMenu"
  58.   set thisMenu = (birth (script topicObjClass, 178 , 178 , 2 , 177 , 41 , 210,  7,0))
  59.   append pTopicMenu, thisMenu
  60.   set pLatchedAlpha = thisMenu
  61.   --òò B
  62.   set thisMenu =  (birth (script topicObjClass, 179 , 179 , 2 , 177 , 41 ,221,  13,0))
  63.   append pTopicMenu, thisMenu
  64.   --òò C
  65.   set thisMenu =  (birth (script topicObjClass, 180 , 180 , 2 , 177 , 41 ,235,  14,8))
  66.   append pTopicMenu, thisMenu
  67.   --òò D
  68.   set thisMenu =  (birth (script topicObjClass, 181 , 181 , 2 , 177 , 41 ,265,  6,0))
  69.   append pTopicMenu, thisMenu
  70.   --òò E
  71.   set thisMenu =  (birth (script topicObjClass, 182 , 182 , 2 , 177 , 41 ,276,  4,0))
  72.   append pTopicMenu, thisMenu
  73.   --òò F
  74.   set thisMenu =  (birth (script topicObjClass, 183 , 183 , 2 , 177 , 41 ,287,  10,10))
  75.   append pTopicMenu, thisMenu
  76.   --òò G
  77.   set thisMenu =  (birth (script topicObjClass, 184 , 184 , 2 , 177 , 41 ,309,  4,0))
  78.   append pTopicMenu, thisMenu
  79.   --òò H
  80.   set thisMenu =  (birth (script topicObjClass, 185 , 185 , 2 , 177 , 41 ,320,  10,0))
  81.   append pTopicMenu, thisMenu
  82.   --òò I
  83.   set thisMenu =  (birth (script topicObjClass, 186 , 186 , 2 , 177 , 41 ,331,  5,0))
  84.   append pTopicMenu, thisMenu
  85.   --òò J
  86.   set thisMenu =  (birth (script topicObjClass, 187 , 187 , 2 , 177 , 41 ,342,  1,0))
  87.   append pTopicMenu, thisMenu
  88.   --òò K
  89.   set thisMenu =  (birth (script topicObjClass, 188 , 188 , 2 , 177 , 41 ,353,  2,0))
  90.   append pTopicMenu, thisMenu
  91.   --òò L
  92.   set thisMenu = (birth (script topicObjClass, 189 , 189 , 2 , 177 , 41 ,364,  5,0))
  93.   append pTopicMenu, thisMenu
  94.   --òò M
  95.   set thisMenu =  (birth (script topicObjClass, 190 , 190 , 2 , 177 , 41 ,375,  5,0))
  96.   append pTopicMenu, thisMenu
  97.   --òò N
  98.   set thisMenu =  (birth (script topicObjClass, 191 , 191 , 2 , 177 , 41 ,386,  4,0))
  99.   append pTopicMenu, thisMenu
  100.   --òò O
  101.   set thisMenu =  (birth (script topicObjClass, 192 , 192 , 2 , 177 , 41 ,397,  3,0))
  102.   append pTopicMenu, thisMenu
  103.   --òò P
  104.   set thisMenu = (birth (script topicObjClass, 193 , 193 , 2 , 177 , 41 ,408,  1,0))
  105.   append pTopicMenu, thisMenu
  106.   --òò Q
  107.   set thisMenu =  (birth (script topicObjClass, 0 , 0 , 0 , 177 , 41 ,45,  0,0))
  108.   append pTopicMenu, thisMenu
  109.   --òò R
  110.   set thisMenu =  (birth (script topicObjClass, 194 , 194 , 2 , 177 , 41 ,419,  5,0))
  111.   append pTopicMenu, thisMenu
  112.   --òò S
  113.   set thisMenu =  (birth (script topicObjClass, 195 , 195 , 2 , 177 , 41 ,430,  11,9))
  114.   append pTopicMenu, thisMenu
  115.   --òò T
  116.   set thisMenu =  (birth (script topicObjClass, 196 , 196 , 2 , 177 , 41 ,452,  14,0))
  117.   append pTopicMenu, thisMenu
  118.   --òò U
  119.   set thisMenu =  (birth (script topicObjClass, 0 , 0 , 0 , 177 , 41 ,45,  0,0))
  120.   append pTopicMenu, thisMenu
  121.   --òò V
  122.   set thisMenu =  (birth (script topicObjClass, 197 , 197 , 2 , 177 , 41 ,468,  2,0))
  123.   append pTopicMenu, thisMenu
  124.   --òò W
  125.   set thisMenu =  (birth (script topicObjClass, 198 , 198 , 2 , 177 , 41 ,472,  6,0))
  126.   append pTopicMenu, thisMenu
  127.   --òò X
  128.   set thisMenu =  (birth (script topicObjClass, 0 , 0 , 0 , 177 , 41 ,45,  0,0))
  129.   append pTopicMenu, thisMenu
  130.   --òò Y
  131.   set thisMenu =  (birth (script topicObjClass, 199 , 199 , 2 , 177 , 41 ,479,  1,0))
  132.   append pTopicMenu, thisMenu
  133.   --òò Z
  134.   set thisMenu =  (birth (script topicObjClass, 0 , 0 , 0 , 177 , 41 ,45,  0,0))
  135.   append pTopicMenu, thisMenu
  136. end
  137.  
  138.  
  139.